/**
 * 选择客户的组织机构
 */
(function($){
	$.fn.chkorgselect = function(options){
		options = options || {};
		return this.each(function(){
			var opts = $.extend({
				panelWidth:500,
				idField:'chkOrgId',
				textField:'chkOrgName',
				mode:'remote',
				pagination:true,
				fit:true,
				fitColumns:true,
				columns:[[
				      {field:'chkOrgId',title:'机构ID',width:60,hidden:true},
					  {field:'chkOrgName',title:'机构名称',width:60},
					  {field:'chkOrgCode',title:'机构编码',width:150},
					  {field:'chkOrgAddress',title:'机构地址',width:160},
					  {field:'chkOrgPhone',title:'电话',width:60}
				]]
			}, options);
			
			$(this).combogrid(opts);
		});
	};
})(jQuery);